<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />

<script language="javascript" type="text/javascript"
	src="<s:url value='/js/My97DatePicker/WdatePicker.js'/>"></script>

<title>入场登记</title>

<style type="text/css">
<!--
.STYLE1 {
	font-size: 9px
}

.STYLE6 {
	font-size: 12px;
	font-family: "宋体";
}

.STYLE8 {
	font-size: 12px;
	font-family: "宋体";
	color: #FFFFFF;
}

.ljlsetyle {
	font-family: "宋体";
	font-size: 12px;
}
-->
</style>

</head>

<body leftmargin="0" topmargin="0">

	<s:form name="QueryForm" action="queryAction!query.action">
	</s:form>

	<s:form name="CarinfoForm"
		action="addCarinfoAction!doSaveCarinfo.action">
		<table width="100%" border="0" cellpadding="0" cellspacing="1"
			bordercolor="#000099" bgcolor="#C4CFFF" class="ljlsetyle">
			<tr>
				<td height="42" colspan="4" bgcolor="#E5E5E5"><table
						width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="70%" height="25">&nbsp;</td>
							<td width="6%" height="25"><input type="button" name="维护查询"
								value="维护查询" onclick="gotoQuery()" /></td>
							<td width="4%" height="25"><input type="button" name="新增"
								value="新增" /></td>
							<td width="5%" height="25"><input type="button" name="修改"
								value="修改" /></td>
							<td width="5%" height="25"><input type="button" name="删除"
								value="删除" /></td>
							<td width="4%" height="25"><input type="button" name="save"
								value="保存" onclick="saveCarinfoForm ()" /></td>
							<td width="6%" height="25"><input type="button" name="取消"
								value="取消" /></td>
						</tr>
					</table> <span class="STYLE1"></span></td>
			</tr>

			<tr>
				<td height="25" colspan="4" bgcolor="#006699"><span
					class="STYLE8">【暂扣信息】</span></td>
			</tr>
			<tr>
				<td width="10%" height="25" bgcolor="#E5E5E5"><span
					class="STYLE6">登记号：</span></td>
				<td width="40%" height="25" bgcolor="#FFFFFF"><label> <s:textfield
							id="djh" name="djh" readonly="true" />
				</label></td>
				<td width="10%" height="25" bgcolor="#E5E5E5"><span
					class="STYLE6">有无车牌：</span></td>
				<td width="40%" height="25" bgcolor="#FFFFFF"><input
					type="checkbox" name="checkbox" value="checkbox" /></td>

			</tr>
			<tr>
				<td height="25" bgcolor="#E5E5E5"><span class="STYLE6">号牌种类：</span></td>
				<td height="25" bgcolor="#FFFFFF"><label></label> <label>
						<s:select id="hpzl" name="hpzl" list="hpzlList"
							headerKey="" headerValue="" listKey="id.xxdm" listValue="xxmc" />
				</label></td>
				<td height="25" bgcolor="#E5E5E5"><span class="STYLE6">车牌号码：

				</span></td>
				<td height="25" bgcolor="#FFFFFF"><input type="text"
					name="textfield42" /></td>
			</tr>
			<tr>
				<td height="25" bgcolor="#E5E5E5"><span class="STYLE6">停放车场：</span></td>
				<td height="25" bgcolor="#FFFFFF"><select name="select2">
						<option value="00" selected="selected"></option>
						<option value="01">西和县西峪乡停车场</option>
						<option value="02">西和县汉源镇停车场</option>
				</select></td>
				<td height="25" bgcolor="#E5E5E5"><span class="STYLE6">入场时间：</span></td>
				<td height="25" bgcolor="#FFFFFF"><s:textfield id="rcsj"
						name="rcsj" readonly="true"
						onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
						<s:param name="value">
							<s:date name="rcsj" format="yyyy-MM-dd HH:mm:ss" />
						</s:param>
					</s:textfield></td>
			</tr>
			<tr>
				<td height="25" bgcolor="#E5E5E5"><span class="STYLE6">执法单位：</span></td>
				<td height="25" bgcolor="#FFFFFF"><label> <select
						name="select8">
							<option value="81">陇南市交警大队</option>
							<option value="80"></option>
					</select>
				</label></td>
				<td height="25" bgcolor="#E5E5E5"><span class="STYLE6">执法者：</span></td>
				<td height="25" bgcolor="#FFFFFF"><select name="select6">
						<option value="50">李江龙</option>
						<option value="51">任文凯</option>
						<option value="52">周功勋</option>
				</select></td>
			</tr>
			<tr>
				<td height="25" bgcolor="#E5E5E5"><span class="STYLE6">暂扣原因：</span></td>
				<td height="25" bgcolor="#FFFFFF" colspan="3"><s:select
						id="zkyy" name="zkyy" list="zkyyList" headerKey="" headerValue=""
						listKey="id.xxdm" listValue="xxmc" /></td>


			</tr>
			<span class="STYLE6">
				</tr>
			</span>


			<tr>
				<td height="25" bgcolor="#E5E5E5"><span class="STYLE6">暂扣类型：</span></td>
				<td height="25" bgcolor="#FFFFFF"><s:select id="zklx"
						name="zklx" list="zklxList" headerKey="" headerValue=""
						listKey="id.xxdm" listValue="xxmc" /></td>
				<td height="25" bgcolor="#E5E5E5"><span class="STYLE6">车辆类型：

				</span></td>
				<td height="25" bgcolor="#FFFFFF"><s:select id="cllx"
						name="cllx" list="cllxList" headerKey="" headerValue=""
						listKey="id.xxdm" listValue="xxmc" /></td>
			</tr>
			<span class="STYLE6">
				</tr>
			</span>


			<tr>
				<td height="25" colspan="4" bgcolor="#006699"><span
					class="STYLE8">【当事人/车主信息】}</span></td>
			</tr>
			<span class="STYLE6">
				</tr>
			</span>


			<tr>
				<td height="25" bgcolor="#E5E5E5"><span class="STYLE6">当事人姓名：</span></td>
				<td height="25" bgcolor="#FFFFFF"><s:textfield id="dsrxm"
						name="dsrxm" /></td>
				<td height="25" bgcolor="#E5E5E5"><span class="STYLE6">当事人身份证号码：</span></td>
				<td height="25" bgcolor="#FFFFFF"><s:textfield id="dsrsfz"
						name="dsrsfz" /></td>
			</tr>
			<span class="STYLE6">
				</tr>
			</span>


			<tr>
				<td height="25" bgcolor="#E5E5E5"><span class="STYLE6">车主姓名：</span></td>
				<td height="25" bgcolor="#FFFFFF"><s:textfield id="czxm"
						name="czxm" /></td>
				<td height="25" bgcolor="#E5E5E5"><span class="STYLE6">车主身份证号码：</span></td>
				<td height="25" bgcolor="#FFFFFF"><s:textfield id="czsfz"
						name="czsfz" /></td>
			</tr>
			<span class="STYLE6">
				</tr>
			</span>


			<tr>
				<td height="25" colspan="4" bgcolor="#006699"><span
					class="STYLE8">【操作信息】</span></td>
			</tr>
			<span class="STYLE6">
				</tr>
			</span>


			<tr>
				<td height="41" bgcolor="#E5E5E5"><span class="STYLE6">转入车场操作员姓名：</span></td>
				<td height="41" bgcolor="#FFFFFF"><s:textfield id="zrczyxm"
						name="zrczyxm" /></td>
				<td height="41" bgcolor="#E5E5E5"><span class="STYLE6">填表时间：</span></td>
				<td height="41" bgcolor="#FFFFFF"><s:textfield id="tbsj"
						name="tbsj" readonly="true"
						onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
						<s:param name="value">
							<s:date name="tbsj" format="yyyy-MM-dd HH:mm:ss" />
						</s:param>
					</s:textfield></td>
			</tr>
			<span class="STYLE6">
				</tr>
			</span>


			<tr>
				<td height="25" bgcolor="#E5E5E5"><span class="STYLE6">备注：</span></td>
				<td height="25" colspan="3" bgcolor="#FFFFFF"><s:textarea
						id="sm" name="sm" cols="135" rows="10" /></td>
			</tr>

		</table>
	</s:form>

	<script type="text/javascript">
		document.CarinfoForm.dsrxm.value = "江林伟"; // 当事人姓名 // Done
		document.CarinfoForm.dsrsfz.value = "362334199108191211"; // 当事人身份证 // Done
		document.CarinfoForm.cllx.value = "G12"; // 车辆类型 // Done
		document.CarinfoForm.hpzl.value = "02"; // 号牌种类 // Done
		document.CarinfoForm.zkyy.value = "04"; // 暂扣原因 // Done
		document.CarinfoForm.zklx.value = "04"; // 暂扣类型 // Done
		document.CarinfoForm.zrczyxm.value = "操作员007"; // 转入操作员姓名 // Done
		//document.CarinfoForm.rcsj.value = "2011-05-09 11:49:45"; // 入场时间 // Done
		//document.CarinfoForm.tbsj.value = "2011-05-09 11:49:45"; // 填表时间 // Done
		document.CarinfoForm.czxm.value = "刘雅文"; // 车主姓名 // Done
		document.CarinfoForm.czsfz.value = "360722199509023627"; // 车主身份证 // Done
	</script>

	<script type="text/javascript">
		function saveCarinfoForm() {
			var go_save = 1;
			if (document.CarinfoForm.rcsj.value == "") {
				go_save = 0;
				alert("登记时间不能为空.");
			}

			if (document.CarinfoForm.tbsj.value == "") {
				go_save = 0;
				alert("填表时间不能为空.");
			}

			if (go_save == 1) {
				document.CarinfoForm.submit();
			}

		}
	</script>

	<script type="text/javascript">
		function gotoQuery() {
			document.QueryForm.submit();
		}
	</script>

</body>
</html>

